﻿public class MethodMgr
{
    public static void UIMgr_Open(int viewId)
    {
        ZMgr.UIMgr.Open(viewId);
    }

    public static void UIMgr_Close(int viewId)
    {
        ZMgr.UIMgr.Close(viewId);
    }

    public static void BindSceneOpen(int viewId, bool isBind)
    {
        ZMgr.UIMgr.BindSceneOpen(viewId, isBind);
    }

    public static void RegisterSceneOpen(string sceneName, string mdtName, int mdtId)
    {
        LuaIMediator mdt = UIMgr_Register(mdtName, mdtId);
        ZMgr.UIMgr.RegisterSceneOpen(sceneName, mdt);
    }

    public static LuaIMediator UIMgr_Register(string mdtName, int mdtId)
    {
        LuaIMediator mdt = new LuaIMediator(mdtName, mdtId);
        ZMgr.FaceCenter.AddLuaIMediator(mdt); return mdt;
    }
}